/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package xmarti.vacaxm.test;



import java.util.Date;
import java.util.logging.Level;
import java.util.logging.Logger;
import xmarti.vacaxm.beans.maintenance.AnimalFilter;
import xmarti.vacaxm.beans.maintenance.Bull;
import xmarti.vacaxm.beans.maintenance.Cow;
import xmarti.vacaxm.exception.ExceptionHibernateVacaxm;
import xmarti.vacaxm.model.ModelMaintenance;
import xmarti.vacaxm.utils.Utils;

/**
 *
 * @author xmarti
 */
//public class testModel {
//    public static void main(String[] args) {
//        ModelMaintenance model= new ModelMaintenance();
//        AnimalFilter  animalFilter= new AnimalFilter();
//   
//        Date dateHighStart=Utils.getDateSimpleFormat("06/12/2013") ;
//        Date dateHighEnd= Utils.getDateSimpleFormat("07/12/2013") ;
//            
//        
//        try {
//            //animalFilter.setFather(model.getById(30, Bull.class));
//            //animalFilter.setDateHighFilter(true);
//            animalFilter.setAgeFilter(true);
//            animalFilter.setAgeEnd(100);
//            animalFilter.setAgeStart(1);
//            animalFilter.setDateHighStart(dateHighStart);
//            animalFilter.setDateHighEnd(dateHighEnd);
//            for(Cow c: model.getListCowsFilter(animalFilter)){
//                System.out.println(c.getId());
//            }
//        } catch (ExceptionHibernateVacaxm ex) {
//            Logger.getLogger(testModel.class.getName()).log(Level.SEVERE, null, ex);
//        }
//        
//    }
//}
